tp = (1, 2, 3)
tp1 = 4, 5, 6
tp2 = (7,)
tp3 = tuple(range(8, 16))

print(tp, type(tp))
print(tp1, type(tp1))
print(tp2, type(tp2))
print(tp3, type(tp3))

# 排序
ls = sorted(tp3)

# 打包
print(tuple(zip(tp, tp1, tp3)))

# 推导式生成元组
tp4 = tuple(x for x in range(50) if x % 3 == 0 and x > 0)
print(tp4)
